package com.SiLa.LispPlugin;

import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

public class LispFileType extends LanguageFileType {
    public static final LispFileType INSTANCE = new LispFileType();

    private LispFileType() {
        super(LispLanguage.INSTANCE);
    }

    @NotNull
    @Override
    public String getName() {
        return "LISP file";
    }

    @NotNull
    @Override
    public String getDescription() {
        return "LISP language file";
    }

    @NotNull
    @Override
    public String getDefaultExtension() {
        return "lsp";
    }

    @Nullable
    @Override
    public Icon getIcon() {
        return LispIcons.FILE;
    }
}